package com.wb.mianxiangduixiang.银行管理系统;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月22日14:03
 */
//账户类,抽象类abstract
public abstract class Account {
    private int id;
    private String name;
    private String password;
    private String personId;
    private String phone;
    private String balance;

    public Account() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }
    //存款方法,不允许子类修改
    public final void deposit(double maney){
    }
    //取款，子类根据业务需求进行重写,必须重写
    public abstract boolean withdrawMoney(double money);
}
